package RefactoringA1.src;

public class CustomerData {
	
	private String fName;
	private String fStreet;
	private String fZipCode;
	private String fTown;
	private String fCountry;
	private int fAccountNumber;

	public CustomerData(String name, String street, 
			String zipCode, String town, String country, 
			int accountNumber) {
		fName = name;
		fStreet = street;
		fZipCode = zipCode;
		fTown = town;
		fCountry = country;
		fAccountNumber = accountNumber;
	}

	public String getfName() {
		return fName;
	}

	public String getfStreet() {
		return fStreet;
	}

	public String getfZipCode() {
		return fZipCode;
	}

	public String getfTown() {
		return fTown;
	}

	public String getfCountry() {
		return fCountry;
	}
	
	public int getfAccountNumber() {
		return fAccountNumber;
	}

	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append("**************************************");
		sb.append("\nSavings account:     " + fAccountNumber);
		sb.append("\nAccount holder name: " + fName);
		sb.append("\nAddress:             " + fStreet);
		sb.append("                     " + fZipCode);
		sb.append("\n " + fTown);
		sb.append("\n" + fCountry.toUpperCase());
		sb.append("\n**************************************");
		return sb.toString();
	}

}
